package org.xu.controller;

import com.core.base.Reply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.xu.logic.LocalCacheLogic;

@Controller
@RequestMapping("/cache/")
public class LocalCacheController {

    @Autowired
    private LocalCacheLogic cacheLogic;

    @ResponseBody
    @RequestMapping("/get/{account}")
    public Reply<String> upload(@PathVariable(name = "account") String account){
        return Reply.success(cacheLogic.getCacheToken(account));
    }

}
